package com.smt.ejb3.tutoria.entitybean.enum0;

import javax.ejb.Remote;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

@Stateless
@Remote
public class WorkerManagerBean implements WorkerManager {

	@PersistenceContext(unitName = "ejb3db")
	private EntityManager em;
	
	@Override
	public void saveWorker(Worker w) {
		em.persist(w);
	}

}
